    <div class="records index">
	<h2><?php  echo $html->image('iconos/records.png'); __('Historial');?></h2>
	<table cellpadding="0" cellspacing="0">
	<tr>
<!--			<th><?php echo $this->Paginator->sort('Id','id');?></th>-->
			<th><?php echo $this->Paginator->sort('Fecha Inicio','start_date');?></th>
			<th><?php echo $this->Paginator->sort('Fecha Fin','end_date');?></th>
			<th><?php echo $this->Paginator->sort('Cliente','client_id');?></th>
			<th><?php echo $this->Paginator->sort('Auto','car_id');?></th>
			<th class="actions"><?php __('Opciones');?></th>
	</tr>
	<?php
	$i = 0;
//        pr($records);die;
	foreach ($records as $record):
		$class = null;
		if ($i++ % 2 == 0) {
			$class = ' class="altrow"';
		}
	?>
	<tr<?php echo $class;?>>
<!--		<td><?php echo $record['Record']['id']; ?>&nbsp;</td>-->
		<td><?php
                $fi = date('d/m/Y', strtotime($record['Record']['start_date']));
                echo $fi; ?>&nbsp;</td>
		<td><?php
                $ff = date('d/m/Y', strtotime($record['Record']['end_date']));
                echo $ff; ?>&nbsp;</td>
		<td>
                    <?php echo $this->Html->link($record['Client']['last_name'].' '.$record['Client']['first_name'], array('controller' => 'clients', 'action' => 'view', $record['Client']['id'])); ?>
                </td>
		<td><?php echo $record['Car']['letter'].' '.$record['Car']['number']; ?>&nbsp;</td>
                <!--LOS AUTOS VAN SIN LOS LINK-->
                <!--<td>
                    <?php echo $this->Html->link($record['Car']['letter'].' '.$record['Car']['number'], array('controller' => 'cars', 'action' => 'view', $record['Car']['id'])); ?>
                </td>-->
		<td class="actions">
			<?php echo $this->Html->link(__('Ver', true), array('action' => 'view', $record['Record']['id'])); ?>
			<!--<?php echo $this->Html->link(__('Editar', true), array('action' => 'edit', $record['Record']['id'])); ?>
			<?php echo $this->Html->link(__('Eliminar', true), array('action' => 'delete', $record['Record']['id']), null, sprintf(__('Esta seguro que desea eliminar el historial con fecha de fin %s?', true), $ff)); ?>-->
		</td>
	</tr>
<?php endforeach; ?>
	</table>
	<p>
	<?php
	echo $this->Paginator->counter(array(
	'format' => __('Página %page% de %pages%, mostrando %current% registros de %count% en total, a partir del registro %start%, terminando en el %end%', true)
	));
	?>	</p>

	<div class="paging">
		<?php echo $this->Paginator->prev('<< ' . __('anterior', true), array(), null, array('class'=>'disabled'));?>
	 | 	<?php echo $this->Paginator->numbers();?>
 |
		<?php echo $this->Paginator->next(__('siguiente', true) . ' >>', array(), null, array('class' => 'disabled'));?>
	</div>
</div>
<!--<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('New Record', true), array('action' => 'add')); ?></li>
	</ul>
</div>-->